home *** CD-ROM | disk | FTP | other *** search
- on beginSprite me
- set mySprite to the spriteNum of me
- DrawControlVThumb(mySprite)
- end
-
- on mouseDown me
- global gCurrLine, gTotLines, gMaxLines, gCurrLogText
- set mySprite to the spriteNum of me
- set myMember to the name of member the member of sprite mySprite
- set the member of sprite mySprite to BtnDw(myMember)
- set deltaV to the mouseV - the locV of sprite mySprite
- repeat while the stillDown
- set HA to float(the locV of sprite mySprite) - float(the top of sprite 23)
- set Perc to HA / float(the height of sprite 23)
- set the locV of sprite mySprite to constrainV(23, the mouseV - deltaV)
- updateStage()
- end repeat
- set gCurrLine to integer((gTotLines - gMaxLines + 1) * Perc) + 1
- if gCurrLine < 1 then
- set gCurrLine to 1
- end if
- if (gCurrLine + gMaxLines - 1) > gTotLines then
- set gCurrLine to gTotLines - gMaxLines + 1
- end if
- set the member of sprite mySprite to BtnUp(myMember)
- set LastLine to gCurrLine + gMaxLines - 1
- ImpostaVThumb()
- updateStage()
- put line gCurrLine to LastLine of gCurrLogText into field "fReport"
- end
-